﻿using AutoMapper;
using PowerHub.MES.DTO.BasicData.DTO;
using PowerHub.MES.Entities.BasicData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.DTO.BasicData
{

    // 映射配置
    public class BasicDataMappingProfile : Profile
    {
        public BasicDataMappingProfile()
        {
            //部门
            CreateMap<BasicData_DepartmentDTO, BasicData_Department>();

            //用户
            CreateMap<BasicData_UserinfoDTO, BasicData_Userinfo>();

            //角色
            CreateMap<BasicData_RoleinfoDTO, BasicData_Roleinfo>();

            //菜单
            CreateMap<BasicData_MenuInfoDTO, BasicData_MenuInfo>();
            CreateMap<BasicData_MenuInfo, BasicData_MenuInfoDTO>();
            CreateMap<BasicData_MenuInfoDTOs, BasicData_MenuInfo>();

            //计量单位
            CreateMap<BasicData_MeasuringUnitDTO, BasicData_MeasuringUnit>();


        }
    }
}
